all: apps
	cargo build --release

apps: libc
	make -C user all

clean:
	make -C user clean

libc:
	make -C relibc install DESTDIR=$(shell pwd)/libc
	rm -rf $(shell pwd)/libc/lib/crt1.o

run: apps
	cargo run --release -- -s
